﻿using System;

namespace diantou.dataModel
{
    /// <summary>
    /// 考试编程日志
    /// </summary>
    [fastCSharp.emit.jsonSerialize(IsAllMember = true)]
    [fastCSharp.emit.jsonParse(IsAllMember = true)]
    [fastCSharp.emit.dataSerialize(IsReferenceMember = false, IsMemberMap = false)]
    //[fastCSharp.code.cSharp.webView.clientType(Name = "diantou.examJudgeLog")]
    [fastCSharp.code.cSharp.sqlModel]
    public partial class examJudgeLog
    {
        /// <summary>
        /// 考试用户标识
        /// </summary>
        public int UserId;
        /// <summary>
        /// 考试毫秒时间戳
        /// </summary>
        public uint Times;
        /// <summary>
        /// 操作起始行
        /// </summary>
        public int StartRow;
        /// <summary>
        /// 操作起始列
        /// </summary>
        public int StartColumn;
        /// <summary>
        /// 操作结束行
        /// </summary>
        public int EndRow;
        /// <summary>
        /// 操作结束列
        /// </summary>
        public int EndColumn;
        /// <summary>
        /// 日志操作相关内容
        /// </summary>
        public fastCSharp.sql.jsonMember<string[]> Content;
        /// <summary>
        /// 日志类型
        /// </summary>
        public enum type : byte
        {
            /// <summary>
            /// 显示问题
            /// </summary>
            LoadAce = 1,
            /// <summary>
            /// 设置语言
            /// </summary>
            SetLanguage = 2,
            /// <summary>
            /// 提交测试
            /// </summary>
            Judge = 3,
            /// <summary>
            /// 测试结果反馈
            /// </summary>
            OnJudge = 4,
            /// <summary>
            /// ACE编辑增加代码
            /// </summary>
            insertText = 5,
            /// <summary>
            /// ACE编辑增加代码
            /// </summary>
            insertLines = 6,
            /// <summary>
            /// ACE编辑删除代码
            /// </summary>
            removeText = 7,
            /// <summary>
            /// ACE编辑删除代码
            /// </summary>
            removeLines = 8,
        }
        /// <summary>
        /// 日志类型
        /// </summary>
        public type Type;
    }
}
